import {Map} from 'immutable';

import * as actionTypes from './constant';

const defaultState = Map({
    leaseWithdrawalInfo:[]
})

function reducer(state = defaultState, action){
    switch(action.type) {
        case actionTypes.CHANGE_LEASE_WITHDRAWAL_INFO:
            return state.set('leaseWithdrawalInfo',action.leaseWithdrawalInfo);
        default: 
            return state;
    }
}

export default reducer;